<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>报告列表</title>
    <base href="<%=basePath %>"/>
    <meta name="theme-color" content="#ffc91d"/>
    <link rel="icon" href="static/img/32.png" sizes="32x32"/>
    <link rel="icon" href="static/img/192.png" sizes="192x192"/>
    <link href="../../assets/css/kico.css" rel="stylesheet" type="text/css"/>
    <link href="../../assets/css/moreduo.css" rel="stylesheet" type="text/css"/>
    <link href="https://cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
    <meta name="viewport" content="width=device-width, maximum-scale=1, initial-scale=1"/>
</head>
<body background="../../assets/images/bg-1.png">

<section id="info">
    <div class="wrap">
        <h2 class="title">报告列表</h2>
        <div class="row">
            <table>
                <thead>
                <tr>
                    <th>报告</th>
                    <th>状态</th>
                </tr>
                </thead>
                <tbody>
                <c:forEach items="${page.list}" var="report">
                    <tr>
                        <td>${report.reportTime}</td>
                        <td>
                            <c:if test="${report.stateId==14}">
                                <a href="report/report.action?reportId=${report.reportId}">查看报告</a>
                            </c:if>
                            <c:if test="${report.stateId!=14}">
                                <a href="report/report_guide.action?reportId=${report.reportId}">等待报告</a>
                            </c:if>
                        </td>
                    </tr>
                </c:forEach>
                    <tr>
                        <td>当前第${page.pageNum}页, 总共${page.pages}页，每页${page.pageSize}行，总共${page.total}行</td>
                        <td><a href="frontReport/findUserReport.action?num=${page.prePage}">上一页</a>
                            <a href="frontReport/findUserReport.action?num=${page.nextPage}">下一页</a></td>
                    </tr>
                </tbody>
            </table>

        </div>
    </div>
</section>

<script src="assets/js/kico.js"></script>
<script src="assets/js/moreduo.js"></script>

</body>
</html>